Skip to content

Conversation

@dnikolaev-amd
Copy link

After PR: pytorch#156600, this test was failing internally on large tensors because the differences were greater than tolerances on some cuda devices.

We now raise the tolerances for larger tensors.
Pull Request resolved: pytorch#156699 Approved by: https://github.com/eqy, https://github.com/ngimel

(cherry picked from commit 36dd598)

Fixes SWDEV-547998

…#156699)

After I landed this PR: pytorch#156600, this test was failing internally on large tensors because the differences were greater than tolerances on some cuda devices.

We now raise the tolerances for larger tensors.
Pull Request resolved: pytorch#156699
Approved by: https://github.com/eqy, https://github.com/ngimel

(cherry picked from commit 36dd598)
@dnikolaev-amd dnikolaev-amd changed the title layernorm tests: Tweak test thresholds for comparing tensors (#156699) [release/2.8] layernorm tests: Tweak test thresholds for comparing tensors Aug 26, 2025
@rocm-repo-management-api
Copy link

rocm-repo-management-api bot commented Aug 27, 2025

Jenkins build for 6124aa037f29ec6c491b9e44e17f69a469cbea79 commit finished as FAILURE
Links: Blue Ocean view / Build artifacts

Copy link
Collaborator

@pruthvistony pruthvistony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving for now since it is upstream cherry-pipck.
But we need to find whats the root cause of this in the native kernels.

@pruthvistony pruthvistony merged commit 6aaabc1 into release/2.8 Aug 27, 2025
1 of 3 checks passed
@pruthvistony pruthvistony deleted the dnikolaev/layernorm_test_tweak_thresholds_for_comparing_tensors branch August 27, 2025 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants